package com.weixinli.beans;

import java.io.Serializable;

public class UserRecord implements Serializable{
	private int rid;//编号
	private int w_uid;//用户编号
	private String rresult;//个人测试结果
	private String rtime;//测试时间
	private int tid;//关联测试编号
	private static final long serialVersionUID = 1L;
	@Override
	public String toString() {
		return "UserRecord [rid=" + rid + ", w_uid=" + w_uid + ", rresult="
				+ rresult + ", rtime=" + rtime + ", tid=" + tid + "]";
	}

	public int getRid() {
		return rid;
	}

	public void setRid(int rid) {
		this.rid = rid;
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getRresult() {
		return rresult;
	}

	public void setRresult(String rresult) {
		this.rresult = rresult;
	}

	public String getRtime() {
		return rtime;
	}

	public void setRtime(String rtime) {
		this.rtime = rtime;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + rid;
		result = prime * result + ((rresult == null) ? 0 : rresult.hashCode());
		result = prime * result + ((rtime == null) ? 0 : rtime.hashCode());
		result = prime * result + tid;
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserRecord other = (UserRecord) obj;
		if (rid != other.rid)
			return false;
		if (rresult == null) {
			if (other.rresult != null)
				return false;
		} else if (!rresult.equals(other.rresult))
			return false;
		if (rtime == null) {
			if (other.rtime != null)
				return false;
		} else if (!rtime.equals(other.rtime))
			return false;
		if (tid != other.tid)
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public UserRecord(int rid, int w_uid, String rresult, String rtime, int tid) {
		super();
		this.rid = rid;
		this.w_uid = w_uid;
		this.rresult = rresult;
		this.rtime = rtime;
		this.tid = tid;
	}

	public UserRecord() {
		super();
	}
}
